package ma.jee.portailReservation.persistence.person.DAO;

import ma.jee.portailReservation.framework.dao.hibernate.AbstractHibernateDAO;
import ma.jee.portailReservation.persistence.person.Admin;
import ma.jee.portailReservation.persistence.person.IAdminDAO;
import org.springframework.stereotype.Repository;

/**
 * Created by IntelliJ IDEA.
 * User: soufiane
 * Date: 22/12/11
 * Time: 02:10
 * To change this template use File | Settings | File Templates.
 */
@Repository("hibernateAdminDAO")
public class HibernateAdminDAO extends AbstractHibernateDAO<Long, Admin> implements IAdminDAO {
     @Override
    public Admin findByAdminId(long id) {
        return super.findEntityByQuery("FROM Admin p WHERE p.idAdmin ='"+id+"'");
    }
}
